package com.sc.nft.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.DaoSchoolArticleMaterial;
import com.sc.nft.entity.UserEcologyCollectionRecords;
import com.sc.nft.entity.vo.ecology.UserEcologyCollectionRecordsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 生态-孵化-用户消耗藏品记录表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-06-15
 */
@Mapper
public interface UserEcologyCollectionRecordsMapper extends BaseMapper<UserEcologyCollectionRecords> {

    List<UserEcologyCollectionRecordsVO> getList(@Param("userId") Long userId, @Param("userEcologyHatchRecordsId") Long userEcologyHatchRecordsId);

    /**
     * 批量入库
     *
     * @param list
     * @return
     */
    Integer saveList(@Param("list") List<UserEcologyCollectionRecords> list);
}
